package com.chuck.blogpro.mapper;

import com.chuck.blogpro.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getUsers();

    User login(String username, String password);

    void delete(Integer id);

    User getUserById(Integer id);

    void update(User user);

    void add(User user);
}
